package main

import "srv/kline/exchange"

func KlineFactory(exchangeSlug string) exchange.KlineInterface {

	switch exchangeSlug {
	case "bit-z":
		return exchange.NewBitZKline()
	case "binance":
		return exchange.NewBinanceKline()
	case "huobi":
		return exchange.NewHuobiKline()
	}
	return nil
}